import Request from '../utils/http.js';

export default {
	getServiceCateChild: function(params) {
		return Request.httpRequest({
			url: '/api/service/getCate',
			method: 'POST',
			params: params
		})
	},
	
	getShopList: function(params) {
		return Request.httpRequest({
			url: '/api/service/shop_list',
			method: 'POST',
			params: params
		})
	},
	
	getServiceList: function(params) {
		return Request.httpRequest({
			url: '/api/service/getServiceList',
			method: 'POST',
			params: params
		})
	},
	
	send_message: function(params) {
		return Request.httpTokenRequest({
			url: '/api/index/send_message',
			method: 'POST',
			params: params
		})
	},
	
	sendmessage: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/sendmessage',
			method: 'POST',
			params: params
		})
	},
	
	getuserallorder: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/getuserallorder',
			method: 'POST',
			params: params
		})
	},
	
	shop_manager_list: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/shop_manager_list',
			method: 'POST',
			params: params
		})
	},
	
	getService_order_edit: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/getService_order_edit',
			method: 'POST',
			params: params
		})
	},
	
	send_message: function(params) {
		return Request.httpTokenRequest({
			url: '/api/index/send_message',
			method: 'POST',
			params: params
		})
	},
	
	check_read: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/check_read',
			method: 'POST',
			params: params
		})
	},
	
	delay_pushmessage: function(params) {
		return Request.httpTokenRequest({
			url: '/api/service/delay_pushmessage',
			method: 'POST',
			params: params
		})
	},
	
	// 修改商品价格
	change_price: function (params) {
		return Request.httpTokenRequest({
			url: '/api/service/shop_edit',
			method: 'POST',
			params: params
		})
	}
}